package com.fresh.bus.chat.domain;

import java.util.ArrayList;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ListOperations;
import org.springframework.data.redis.core.StringRedisTemplate;

public class Station {
	private String name;
	private String desc;
	private ArrayList<BusLine> lines;

	private ListOperations<String, String> listOps;
	
	public Station(){
		
	}


	public Station(String name, String desc,StringRedisTemplate template) {
		this.name = name;
		this.desc = desc;
	}

	public void addLine(BusLine line) {
		this.lines.add(line);
	}

	public ArrayList<BusLine> getLines() {
		return this.lines;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}
